package com.swgk.core.base.model.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import java.io.Serializable;

/**
 * Created by：冯齐 on 2020/12/6 15:08
 * Description：
 */
public class VideoBean implements Serializable , MultiItemEntity {
    /**
     *  {
     *         // 头像
     *         "headImg": "",
     * 		// 分类名称
     *         "typeName": "贸易经营",
     * 		// 用户姓名
     *         "createUserName": "",
     * 		// 视频id
     *         "videoId": "c17f4a1f241244e285aea6058e270ecf",
     * 		// 标题
     *         "title": "123",
     *         "type": "5dd74babe4b060f5de622a6c",
     * 		//封面
     *         "cover": "https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/20200823018404265742426.jpg",
     *         // 播放URL
     * 		"coverURL": "http://outin-684db67b523111ea845700163e00b174.oss-cn-shanghai.aliyuncs.com/c17f4a1f241244e285aea6058e270ecf/snapshots/d234a78978a5420ebb5067ce64b50ee6-00001.jpg?Expires=1598955875&OSSAccessKeyId=LTAI3DkxtsbUyNYV&Signature=ahqLyK7xHfR%2BgJM0GPI5nmAKNZc%3D",
     *        //视频时长
     * 		"duration": "00:00:28",
     *         // 是否关注
     * 		"isFollow": 0,
     * 		// 播放次数
     *         "playCount": 3,
     * 		// 点赞次数
     *         "laudCount": 0,
     * 		// 分享数
     * 		"shareCount" : 0,
     * 		// 是否点赞（0：不是，1：是）
     * 		"isLaud":0,
     * 		//是否是视频所有人（0：不是，1：是）
     * 		"isOwner":0,
     *         "createUser": "20190906164209",
     *         "id": 179,
     *         "status": 20
     *       }
     * 		//播放地址
     * 		"playUrl": "https://outin-684db67b523111ea845700163e00b174.oss-cn-shanghai.aliyuncs.com/bf61c288335b440c9b03889e82aed8a5/43ad7c25db7242a49d0edcad02f650ad-ba4b9286ed4560f8503627cdd88aa256-ld.mp4?Expires=1601286207&OSSAccessKeyId=LTAI3DkxtsbUyNYV&Signature=wIAlKDsaxlxet84XtU4MAoDLYII%3D",
     */
    private int commentCount;
    private String headImg;// 头像
    private String typeName;// 分类名称
    private String createUserName;// 用户姓名
    private String videoId;// 视频id
    private int isLaud;	// 是否点赞（0：不是，1：是）
    private String title;	// 标题
    private String type;
    private String cover;//封面地址（知识分享封面字段）
    private String coverURL;//视频播放地址（知识分享视频播放字段）
    private String playUrl;//（如有定制需求单独写的视频播放界面可用该字段）
    private String duration; //视频时长
    private int isFollow;  // 是否关注
    private int playCount;// 播放次数
    private int shareCount;// 分享数
    private int isOwner;//是否是视频所属人（0：不是，1：是）
//    private String isRecommendCover;
    private int laudCount;// 点赞次数
    private String createUser;//用户id
    private int id;
    private int status;
    /** 是否已点赞 */
    private boolean isLiked;
    private boolean select;
    //标签名称
    private String labelName;
    private String labelNo;

    public String getLabelNo() {
        return labelNo;
    }

    public void setLabelNo(String labelNo) {
        this.labelNo = labelNo;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String getPlayUrl() {
        return playUrl;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public int getIsLaud() {
        return isLaud;
    }

    public void setIsLaud(int isLaud) {
        this.isLaud = isLaud;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getCoverURL() {
        return coverURL;
    }

    public void setCoverURL(String coverURL) {
        this.coverURL = coverURL;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public int getIsFollow() {
        return isFollow;
    }

    public void setIsFollow(int isFollow) {
        this.isFollow = isFollow;
    }

    public int getPlayCount() {
        return playCount;
    }

    public void setPlayCount(int playCount) {
        this.playCount = playCount;
    }

    public int getShareCount() {
        return shareCount;
    }

    public void setShareCount(int shareCount) {
        this.shareCount = shareCount;
    }

    public int getIsOwner() {
        return isOwner;
    }

    public void setIsOwner(int isOwner) {
        this.isOwner = isOwner;
    }

//    public String getIsRecommendCover() {
//        return isRecommendCover;
//    }
//
//    public void setIsRecommendCover(String isRecommendCover) {
//        this.isRecommendCover = isRecommendCover;
//    }

    public int getLaudCount() {
        return laudCount;
    }

    public void setLaudCount(int laudCount) {
        this.laudCount = laudCount;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isLiked() {
        return isLiked;
    }

    public void setLiked(boolean liked) {
        isLiked = liked;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    @Override
    public String toString() {
        return "VideoBean{" +
                "commentCount=" + commentCount +
                ", headImg='" + headImg + '\'' +
                ", typeName='" + typeName + '\'' +
                ", createUserName='" + createUserName + '\'' +
                ", videoId='" + videoId + '\'' +
                ", isLaud=" + isLaud +
                ", title='" + title + '\'' +
                ", type='" + type + '\'' +
                ", cover='" + cover + '\'' +
                ", coverURL='" + coverURL + '\'' +
                ", duration='" + duration + '\'' +
                ", isFollow=" + isFollow +
                ", playCount=" + playCount +
                ", shareCount=" + shareCount +
                ", isOwner=" + isOwner +
//                ", isRecommendCover='" + isRecommendCover + '\'' +
                ", laudCount=" + laudCount +
                ", createUser='" + createUser + '\'' +
                ", id=" + id +
                ", status=" + status +
                ", isLiked=" + isLiked +
                ", select=" + select +
                '}';
    }

    @Override
    public int getItemType() {
        return 0;
    }



    public boolean isCheckMoreVideos() {
        return ("查看更多视频").equals(getType());
    }
}
